import request from '@/utils/request'

// 查询求职论坛列表
export function listComment(query) {
  return request({
    url: '/comment/comment/list',
    method: 'get',
    params: query
  })
}

// 查询求职论坛详细
export function getComment(id) {
  return request({
    url: '/comment/comment/' + id,
    method: 'get'
  })
}

// 新增求职论坛
export function addComment(data) {
  return request({
    url: '/comment/comment/add',
    method: 'post',
    data: data
  })
}

// // 修改求职论坛
// export function updateComment(data) {
//   return request({
//     url: '/comment/comment',
//     method: 'put',
//     data: data
//   })
// }

// 删除求职论坛
export function delComment(id) {
  return request({
    url: '/comment/comment/' + id,
    method: 'delete'
  })
}
